<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 管理系统</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #34495e;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            padding: 20px;
        }
        
        .personal-container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .personal-header {
            padding: 20px;
            background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
            color: white;
            display: flex;
            align-items: center;
        }
        
        .personal-header i {
            font-size: 24px;
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .personal-header h2 {
            font-weight: 500;
        }
        
        .personal-content {
            display: flex;
            padding: 20px;
        }
        
        .profile-sidebar {
            width: 250px;
            padding-right: 20px;
            border-right: 1px solid #eee;
        }
        
        .profile-card {
            text-align: center;
            padding: 20px 0;
        }
        
        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 15px;
            overflow: hidden;
            border: 4px solid #f1f1f1;
        }
        
        .profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .profile-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .profile-role {
            color: var(--primary-color);
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        .profile-stats {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 600;
            color: var(--dark-color);
        }
        
        .stat-label {
            font-size: 12px;
            color: #95a5a6;
        }
        
        .profile-menu {
            margin-top: 30px;
        }
        
        .profile-menu a {
            display: block;
            padding: 12px 15px;
            color: #7f8c8d;
            text-decoration: none;
            border-radius: 4px;
            margin-bottom: 5px;
            transition: all 0.2s;
        }
        
        .profile-menu a:hover, .profile-menu a.active {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
        }
        
        .profile-menu a i {
            margin-right: 10px;
            font-size: 16px;
        }
        
        .profile-main {
            flex: 1;
            padding-left: 20px;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .card {
            background: white;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .card-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-header h3 {
            font-weight: 500;
            font-size: 16px;
        }
        
        .card-body {
            padding: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #555;
        }
        
        .form-control {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            outline: none;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #2980b9;
        }
        
        .table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .table th, .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .table th {
            background-color: #f8f9fa;
            font-weight: 500;
            color: #555;
        }
        
        .table tr:hover {
            background-color: #f8f9fa;
        }
        
        .badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .badge-success {
            background-color: #d4edda;
            color: #155724;
        }
        
        .badge-warning {
            background-color: #fff3cd;
            color: #856404;
        }
    </style>
</head>
<body>
    <div class="personal-container">
        <div class="personal-header">
            <i class="bi bi-person-circle"></i>
            <h2>个人中心</h2>
        </div>
        
        <div class="personal-content">
            <div class="profile-sidebar">
                <div class="profile-card">
                    <div class="profile-avatar">
                        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="用户头像">
                    </div>
                    <h3 class="profile-name">张经理</h3>
                    <div class="profile-role">系统管理员</div>
                    
                    <div class="profile-stats">
                        <div class="stat-item">
                            <div class="stat-value">28</div>
                            <div class="stat-label">项目</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">1.2k</div>
                            <div class="stat-label">关注</div>
                        </div>
                        <div class="stat-item">
                            <div class="stat-value">89</div>
                            <div class="stat-label">积分</div>
                        </div>
                    </div>
                </div>
                
                <div class="profile-menu">
                    <a href="#basic-info" class="active" data-tab="basic-info">
                        <i class="bi bi-person"></i>
                        基本信息
                    </a>
                    <a href="#security" data-tab="security">
                        <i class="bi bi-shield-lock"></i>
                        安全设置
                    </a>
                    <a href="#notifications" data-tab="notifications">
                        <i class="bi bi-bell"></i>
                        消息通知
                    </a>
                    <a href="#activity" data-tab="activity">
                        <i class="bi bi-clock-history"></i>
                        操作日志
                    </a>
                </div>
            </div>
            
            <div class="profile-main">
                <!-- 基本信息 -->
                <div id="basic-info" class="tab-content active">
                    <div class="card">
                        <div class="card-header">
                            <h3>个人信息</h3>
                        </div>
                        <div class="card-body">
                            <form>
                                <div class="form-group">
                                    <label>用户名</label>
                                    <input type="text" class="form-control" value="zhangjingli">
                                </div>
                                <div class="form-group">
                                    <label>姓名</label>
                                    <input type="text" class="form-control" value="张经理">
                                </div>
                                <div class="form-group">
                                    <label>电子邮箱</label>
                                    <input type="email" class="form-control" value="zhang@example.com">
                                </div>
                                <div class="form-group">
                                    <label>手机号码</label>
                                    <input type="tel" class="form-control" value="13800138000">
                                </div>
                                <div class="form-group">
                                    <label>部门</label>
                                    <input type="text" class="form-control" value="技术部">
                                </div>
                                <div class="form-group">
                                    <label>职位</label>
                                    <input type="text" class="form-control" value="系统管理员">
                                </div>
                                <button type="submit" class="btn btn-primary">保存更改</button>
                            </form>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <h3>个人简介</h3>
                        </div>
                        <div class="card-body">
                            <form>
                                <div class="form-group">
                                    <textarea class="form-control" rows="5" placeholder="介绍一下你自己...">我是系统管理员张经理，负责整个管理系统的维护和用户权限管理，拥有5年以上的系统管理经验。</textarea>
                                </div>
                                <button type="submit" class="btn btn-primary">更新简介</button>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- 安全设置 -->
                <div id="security" class="tab-content">
                    <div class="card">
                        <div class="card-header">
                            <h3>修改密码</h3>
                        </div>
                        <div class="card-body">
                            <form>
                                <div class="form-group">
                                    <label>当前密码</label>
                                    <input type="password" class="form-control" placeholder="请输入当前密码">
                                </div>
                                <div class="form-group">
                                    <label>新密码</label>
                                    <input type="password" class="form-control" placeholder="请输入新密码">
                                </div>
                                <div class="form-group">
                                    <label>确认新密码</label>
                                    <input type="password" class="form-control" placeholder="请再次输入新密码">
                                </div>
                                <button type="submit" class="btn btn-primary">修改密码</button>
                            </form>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <h3>双重验证</h3>
                        </div>
                        <div class="card-body">
                            <div style="margin-bottom: 15px;">
                                <strong>双重验证状态:</strong>
                                <span class="badge badge-warning">未启用</span>
                            </div>
                            <p style="margin-bottom: 15px; color: #666;">
                                双重验证为您的账户增加一层额外的安全保护。启用后，登录时需要输入您的密码和手机收到的验证码。
                            </p>
                            <button type="button" class="btn btn-primary">启用双重验证</button>
                        </div>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <h3>登录设备</h3>
                        </div>
                        <div class="card-body">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>设备</th>
                                        <th>IP地址</th>
                                        <th>最后登录时间</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>Windows 10 - Chrome</td>
                                        <td>192.168.1.100</td>
                                        <td>2023-06-15 14:30</td>
                                        <td><span class="badge badge-success">当前设备</span></td>
                                        <td>-</td>
                                    </tr>
                                    <tr>
                                        <td>iPhone 12 - Safari</td>
                                        <td>192.168.1.101</td>
                                        <td>2023-06-14 09:15</td>
                                        <td><span class="badge">已登录</span></td>
                                        <td><a href="#" style="color: var(--accent-color);">退出</a></td>
                                    </tr>
                                    <tr>
                                        <td>MacBook Pro - Safari</td>
                                        <td>192.168.1.102</td>
                                        <td>2023-06-10 18:45</td>
                                        <td><span class="badge">已登录</span></td>
                                        <td><a href="#" style="color: var(--accent-color);">退出</a></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                
                <!-- 消息通知 -->
                <div id="notifications" class="tab-content">
                    <div class="card">
                        <div class="card-header">
                            <h3>通知设置</h3>
                        </div>
                        <div class="card-body">
                            <form>
                                <div class="form-group">
                                    <label>
                                        <input type="checkbox" checked> 系统通知
                                    </label>
                                    <p style="color: #666; font-size: 13px; margin-top: 5px;">
                                        接收系统更新、维护等重要通知
                                    </p>
                                </div>
                                
                                <div class="form-group">
                                    <label>
                                        <input type="checkbox" checked> 账户安全
                                    </label>
                                    <p style="color: #666; font-size: 13px; margin-top: 5px;">
                                        接收账户登录、密码修改等安全相关通知
                                    </p>
                                </div>
                                
                                <div class="form-group">
                                    <label>
                                        <input type="checkbox"> 营销信息
                                    </label>
                                    <p style="color: #666; font-size: 13px; margin-top: 5px;">
                                        接收产品更新、促销活动等营销信息
                                    </p>
                                </div>
                                
                                <div class="form-group">
                                    <label>通知方式</label>
                                    <div style="margin-top: 5px;">
                                        <label style="margin-right: 15px;">
                                            <input type="radio" name="notification-method" checked> 站内消息
                                        </label>
                                        <label style="margin-right: 15px;">
                                            <input type="radio" name="notification-method"> 电子邮件
                                        </label>
                                        <label>
                                            <input type="radio" name="notification-method"> 短信
                                        </label>
                                    </div>
                                </div>
                                
                                <button type="submit" class="btn btn-primary">保存设置</button>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!-- 操作日志 -->
                <div id="activity" class="tab-content">
                    <div class="card">
                        <div class="card-header">
                            <h3>最近活动</h3>
                        </div>
                        <div class="card-body">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>时间</th>
                                        <th>操作</th>
                                        <th>IP地址</th>
                                        <th>状态</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>2023-06-15 14:30</td>
                                        <td>登录系统</td>
                                        <td>192.168.1.100</td>
                                        <td><span class="badge badge-success">成功</span></td>
                                    </tr>
                                    <tr>
                                        <td>2023-06-15 13:45</td>
                                        <td>修改用户权限</td>
                                        <td>192.168.1.100</td>
                                        <td><span class="badge badge-success">成功</span></td>
                                    </tr>
                                    <tr>
                                        <td>2023-06-15 11:20</td>
                                        <td>导出报表</td>
                                        <td>192.168.1.100</td>
                                        <td><span class="badge badge-success">成功</span></td>
                                    </tr>
                                    <tr>
                                        <td>2023-06-14 17:30</td>
                                        <td>登录系统</td>
                                        <td>192.168.1.100</td>
                                        <td><span class="badge badge-success">成功</span></td>
                                    </tr>
                                    <tr>
                                        <td>2023-06-14 16:15</td>
                                        <td>尝试修改密码</td>
                                        <td>192.168.1.101</td>
                                        <td><span class="badge badge-warning">失败</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 切换标签页
        document.querySelectorAll('.profile-menu a').forEach(tab => {
            tab.addEventListener('click', function(e) {
                e.preventDefault();
                
                // 移除所有active类
                document.querySelectorAll('.profile-menu a').forEach(item => {
                    item.classList.remove('active');
                });
                
                // 添加当前active类
                this.classList.add('active');
                
                // 隐藏所有内容
                document.querySelectorAll('.tab-content').forEach(content => {
                    content.classList.remove('active');
                });
                
                // 显示当前内容
                const tabId = this.getAttribute('data-tab');
                document.getElementById(tabId).classList.add('active');
            });
        });
    </script>
</body>
</html>